package org.bbs.demo.user.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

@Data
public class UserLoginDto {
    @NotBlank(message = "账号不得为空")
    private String userAccount;

    @NotBlank(message = "密码不得为空")
    @Size(min = 5, max = 16, message = "密码长度不符")
    private String password;
}
